'use strict';

module.exports = appInfo => {
  const config = exports = {};
  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1537879523614_3044';
  config.mongo = {
    client: {
      host: '132.232.94.151',
      port: '27017',
      name: 'common',
      user: '',
      password: '',
      options: {},
    }
  };
  config.security = {
    csrf: false
  }

  config.cors = {
    origin: '*',
    allowMethods: 'GET,HEAD,PUT,POST,DELETE,PATCH'
  };
  // add your config here
  config.middleware = [];

  return config;
};